package org.learn.hikaricp;

import com.zaxxer.hikari.HikariDataSource;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

public class App {
    public static void main(String[] args) throws SQLException {

        HikariDataSource ds = new HikariDataSource();
        ds.setJdbcUrl("jdbc:mysql://rm-2zeqc826391dt0lk2.mysql.rds.aliyuncs.com:3306/merge_test");
        ds.setUsername("kuaihe");
        ds.setPassword("Kuaihe0910Mysql");

        Connection connection = ds.getConnection();
        Statement statement = connection.createStatement();
        System.err.println(statement.execute("select count(*) from prm_home_prize"));
    }

}
